package com.dmcloud.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dmcloud.system.entity.SysUser;
import com.dmcloud.system.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 通过ID查询用户信息
     *
     * @param id 用户ID
     * @return userVo
     */
    UserVO findAllRoleByUserId(String id);

    IPage<List<SysUser>> getAllUser(Page page, @Param("user") SysUser user);
}
